package com.primeton.eos.oss.model.dao;

import org.springframework.stereotype.Repository;
import com.eos.spring.dao.AbstractDatabaseDao;
import com.eos.spring.dao.CriteriaBuilder;
import com.eos.system.utility.PageResultList;
import com.primeton.eos.oss.model.newdataset.MdmCrecAccountHis;

@Repository
public class MdmCrecAccountHisDao extends AbstractDatabaseDao {

    public PageResultList<MdmCrecAccountHis> queryMdmCrecAccountHissWithPage(String username,  int pageSize, int pageIndex) {
        CriteriaBuilder cb = new CriteriaBuilder(MdmCrecAccountHis.QNAME);

  		if(null!=username&&!"".equals(username)){
 			cb.and("username", username);
 		}
 		return queryEntitiesByCriteriaWithPage(cb.build(), pageIndex, pageSize);
	}
 
}






